import CommonApi from './common'

// 桥隧涵-桥梁
class BTCBridgeApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/property/bridge'
    }
    // 名称唯一性检查
    validNameUnique(data) {
        const path = this.resolvePath('/nameCheck')
        return this.post(path, data)
    }
    // 编码唯一性检查
    validCodeUnique(data) {
        const path = this.resolvePath('/codeCheck')
        return this.post(path, data)
    }
}

export default BTCBridgeApi
